// subPackages2//pages/signInDetail/signInDetail.js

import Serv from './signInDetailServ.js'
import Config from '../../../utils/config2.js'
var regeneratorRuntime = require("../../../lib/js/runtime-module.js")
var checked = false;
// import userInfoHandler from '../../../pages/template/baseHandle.js'
var baseHandle = require("../../../pages/template/baseHandle.js");
// pages/biz/login/login.js
const app = getApp()


var checked = false;

Page(Object.assign({}, baseHandle, {
  onLaunch: function () {
    console.log('aaa')
    let that = this;
    let { isUserInfoAuth } = app.globalData

    if (!isUserInfoAuth) {
      wx.getSetting({
        success: function (e) {
          console.log(e)
          let authSetting = e.authSetting;
          // isUserInfoAuth = authSetting['scope.userInfo'] || false
          wx.setStorageSync("isUserInfoAuth", '122');
        }
      });
      
    }
  },

  /**
   * 页面的初始数据
   */
  data: {
    disabled: false
  },
  niming: function (e) {

    if (e.detail.value == '') {
      checked = false;
      this.setData({
        disabled: false
      })
    }
    else {
      checked = true;
      this.setData({
        disabled: true
      })
    }
  },
  
  uInfoAuthCancel: function (e) {
    this.setData({
      showModal: false
    });
  },

  
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
   
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    // wx.login({
    //   success: res => {
    //     console.log('login onload:', res.code);
    //     wx.setStorageSync(Config.jsCodeKey, res.code)
    //   }
    // })
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})
)